<?php
// This will svn checkout the web part of the musicstream script to the current working dir
function execInBackground($path, $exe, $additional) {
  global $conf;
    if (file_exists($path . $exe)) {
      chdir($path);
      if (substr(php_uname(), 0, 7) == "Windows"){
      echo 'going Windows';
          pclose(popen("start \"bla\" \"" . $exe . "\" "  . $additional, "r"));           } else {
          exec("./" . $exe . " " .  $additional . " > /dev/null &");           }
  }
} 
execInBackground("C:\\Program Files\\Subversion\\bin\\", "svn.exe", 'update D:\\lighttpd\\htdocs\\');
?>
